home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Misc / emu / p-interp.lha / p-interp-0.5 / Diskio.h < prev    next >
Text File  |  2001-05-21  |  1KB  |  50 lines

  1. /*
  2.  
  3.   P-Code interpreter (to run the apple pascal system)
  4.   Copyright (C) 2000 Mario Klebsch
  5.  
  6.   This program is free software; you can redistribute it and/or modify
  7.   it under the terms of the GNU General Public License as published by
  8.   the Free Software Foundation; either version 2 of the License, or
  9.   (at your option) any later version.
  10.  
  11.   This program is distributed in the hope that it will be useful,
  12.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.   GNU General Public License for more details.
  15.  
  16.   You should have received a copy of the GNU General Public License
  17.   along with this program; if not, write to the Free Software
  18.   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  
  20.   $Log: Diskio.h,v $
  21.   Revision 1.3  2001/05/21 19:06:48  mario
  22.   Mode-Parameter bei den Disk-IO-Routinen entfernt
  23.  
  24.   Revision 1.2  2001/05/20 13:12:02  mario
  25.   CVS-Idents und Logs eingefügt
  26.  
  27.  
  28. */
  29.  
  30. #define MAX_UNIT 20
  31.  
  32. enum DiskMode
  33. {
  34.   ReadOnly,
  35.   Forget,
  36.   ReadWrite
  37. };
  38.  
  39. void DiskRead(word Unit, word Addr, Integer AddrOffset,
  40.           word Len, word BlockNo);
  41. void DiskWrite(word Unit, word Addr, Integer AddrOffset,
  42.            word Len, word BlockNo);
  43. void DiskClear(word Unit);
  44. void DiskStat(word Unit);
  45.  
  46. int  DiskMount(word Unit, const char *FileName, enum DiskMode Mode);
  47. void DiskUmount(word Unit);
  48. void DiskInit(void);
  49.  
  50.